package util;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

public class LogTable {
	
	public Map<String,Integer> opCountMap = null;
	public Map<String,Map<String,Integer>> pairMap = null;
	public Integer pairCount;
	public Integer opCount;
	
	
	///---------------------------------------------
	public Map<String,String> selMap = new HashMap<String,String>();
	public Map<String,String> dict = new HashMap<String,String>();
	public Map<String,String> parent = new HashMap<String,String>();
	
	
	public Map<String,ArrayList<String>> relationMap = new HashMap<String,ArrayList<String>>();
	public ArrayList <String> countryList = new ArrayList<String>();
	public ArrayList <String> level0List = new ArrayList<String>();
	public ArrayList <String> yearList = new ArrayList <String>();

	
	public LogTable(){
		opCountMap = new HashMap<String,Integer>();
		pairMap = new HashMap<String,Map<String,Integer>>();
		pairCount = 0;
		opCount = 0;
		
		
		selMap.put("Level0", "none");
		selMap.put("Level1","none");
		selMap.put("Level2","none");
		
		selMap.put("Country","none");
		selMap.put("City","none");
		
		
		selMap.put("Year","none");
		selMap.put("Month","none");
		selMap.put("Day","none");
		
		
		
		
		dict.put("level0List", Name.level0);
		dict.put("level0Selected", Name.level0);
		
		
		
		dict.put("level1List", Name.level1);
		dict.put("level1Selected", Name.level1);
		
		dict.put("level2List", Name.level2);
		dict.put("level2Selected", Name.level2);
		
		dict.put("yearList", Name.year);
		dict.put("yearSelected", Name.year);
		
		
		dict.put("monthList", Name.month);
		dict.put("monthSelected", Name.month);
		
		dict.put("dayList", Name.day);
		dict.put("daySelected", Name.day);
		
		
		
		dict.put("countryList", Name.country);
		dict.put("countrySelected", Name.country);
		
		
		
		
		dict.put("cityList", Name.city);
		dict.put("citySelected", Name.city);
		dict.put("none", "top");
		
		parent.put(Name.level0,"top");
		parent.put(Name.level1, Name.level0);
		parent.put(Name.level2, Name.level1);
		
		parent.put("Country", "top");
		parent.put(Name.city, Name.country);
		
		parent.put(Name.year, "top");
		parent.put(Name.month, Name.year);
		parent.put(Name.day, Name.month);
		
	}
	
}
